/*
 * Project: Daycare Web Application
 * Package: com.madetoordersoftware.service.exceptions
 * File:    DatabaseFactoryException
 * Created: May 22, 2010
 */

/**
 * Copyright (c) 2010 Made 2 Order Software, LLC
 *
 * All rights reserved. No part of this software may be reproduced, stored in a retrieval system, or
 * transmitted in any form or by any means, without the prior written permission of Made 2 Order
 * Software.
 *
 * You may not distribute the URL or redistribute the files to third parties. You may transfer the
 * files onto a single storage device so long as you can prove ownership of the software. You may
 * not reverse engineer, decompile, or disassemble the software or media files. You may not modify
 * or translate the software or media, or distribute copies of the software or media without the
 * written consent of Made 2 Order Software, LLC.
 */
package com.made2ordersoftware.service.exceptions;

/**
 * Exception class thrown for any database errors associated with the factory connection of a
 * transaction.
 *
 * @author David Canning <dcannin@gmail.com>
 * @version 1.0.0
 */
public class DatabaseFactoryException extends Exception {

   private static final long serialVersionUID = -8725216951325073176L;

   /**
    * Creates an instance of
    * <code>DatabaseFactoryException</code>.
    */
   public DatabaseFactoryException() {
   }

   /**
    * Creates an instance of
    * <code>DatabaseFactoryException</code> with a message and cause.
    *
    * @param message A detailed message of the exception.
    * @param cause   The cause of the exception. A null value is indicates that the cause is
    *                unknown.
    */
   public DatabaseFactoryException(String message, Throwable cause) {
      super(message, cause);
   }

   /**
    * Creates an instance of
    * <code>DatabaseFactoryException</code> with a cause.
    *
    * @param cause The cause of the exception. A null value is indicates that the cause is unknown.
    */
   public DatabaseFactoryException(Throwable cause) {
      super(cause);
   }

   /**
    * Creates an instance of
    * <code>DatabaseFactoryException</code> with a message.
    *
    * @param message A detailed message of the exception.
    */
   public DatabaseFactoryException(String message) {
      super(message);
   }
}
